﻿<%@ Page Language="C#" MasterPageFile="~/Themes/MasterPage.master" %>

<script runat="server">
    protected override void OnLoad(EventArgs e)
    {
        orderPanel.Visible = SiteContext.Current.Type != 5;
        endOrderPanel.Visible = !orderPanel.Visible;
    }
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" runat="Server">
    <script language="javascript" type="text/javascript">
        $(function () {
            $("#orderList table:gt(0)").find("thead").empty();
            $("#orderList table:first").append($("#orderList table:gt(0) tr")).addClass("table_a2");
        });
    </script>
    <div class="member">
        <lswweb:SkinControl ID="menum" SkinFileName="Globals_UserMenum.ascx" runat="server" />
        <div id="orderList" class="rightBox">
            <h3><%= SiteContext.Current.Type == 5 ? "Order history" : "My Order"%></h3>
            <asp:Panel ID="orderPanel" runat="server">
                <lswweb:OrderList ID="OrderList" Status="WaitPayment" PageSize="99" EnableAspNetPager="false" runat="server" />
                <br />
                <lswweb:OrderList ID="OrderList5" Status="WaitConfirmation" PageSize="99" EnableAspNetPager="false" runat="server" />
                <br />
                <lswweb:OrderList ID="OrderList1" Status="InStock" PageSize="99" EnableAspNetPager="false" runat="server" />
                <br />
                <lswweb:OrderList ID="OrderList2" Status="WaitReceive" PageSize="99" EnableAspNetPager="false" runat="server" />
            </asp:Panel>
            <asp:Panel ID="endOrderPanel" runat="server">
                <lswweb:OrderList ID="OrderList4" Status="AbnormityEnd" EnableAspNetPager="false" runat="server" />                    
                <br />
                <lswweb:OrderList ID="OrderList3" Status="ConfirmationReceipt" runat="server" />
            </asp:Panel>
        </div>
        <!--右边结束-->
        <div class="clear">
        </div>
    </div>
    <div class="clear">
    </div>
</asp:Content>
